<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	
</head>
<body>
	<p id="box"></p>

	<script>
		
		function run(argument) {
			now = new Date();

			gq = new Date("2018-10-01 0:0:0");

			nowTime = now.getTime()/1000;

			gqTime = gq.getTime()/1000;

			diffTime = gqTime-nowTime;

			day = Math.floor(diffTime/86400)

			hour = Math.floor(diffTime%86400/3600);
			mis = Math.floor(diffTime%86400%3600/60);
			se = Math.floor(diffTime%86400%3600%60);

			box = document.getElementById('box');

			box.innerHTML = day+"天"+hour+"小时"+mis+"分时"+se+"秒";

			// document.write(day+"天"+hour+"小时"+mis+"分时"+se+"秒");
		}


		setInterval(run,1000)








	</script>
</body>
</html>